/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.GUI.setting;

import ac.ui.controls.PCLPanel;
import ac.uitls.propertiesOperation;
import java.awt.Component;
import javax.swing.JCheckBox;

/**
 *
 * @author ismail
 */
public class lsetting extends PCLPanel {

    /**
     * Creates new form lsetting
     */
    ac.ui.custemItmes c = new ac.ui.custemItmes();
    ac.ui.utils u = new ac.ui.utils();
    propertiesOperation po = new propertiesOperation();
    ac.engin.setting.limitsSetting gs = new ac.engin.setting.limitsSetting();

    public lsetting() {
        initComponents();
        onLoad();
        meload();

    }

    void meload() {

        jp_bayMinPriceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.bayMinPriceLimit")));
        jp_bayMaxPriceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.bayMaxPriceLimit")));
        jp_sellMinPriceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.sellMinPriceLimit")));
        jp_sellMaxPriceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.sellMaxPriceLimit")));
        jp_supBalanceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.supBalanceLimit")));
        jp_cusBalanceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.cusBalanceLimit")));
        jp_bayLimit.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.bayLimit")));
        jp_sellLimit.setBorder(javax.swing.BorderFactory.createTitledBorder(po.getWord("label.sellLimit")));

        gs.ischecked("limit.bayFollow", jch_bayFollow);
        gs.ischecked("limit.bayMessage", jch_bayMessage);

        gs.ischecked("limit.bayMaxPriceMessage", jch_bayMaxPriceMessage);
        gs.ischecked("limit.bayMaxPriceFollow", jch_bayMaxPriesFollow);

        gs.ischecked("limit.bayMinPriceMessage", jch_bayMinPriceMessage);
        gs.ischecked("limit.bayMinPriceFollow", jch_bayMinPriesFollow);

        gs.ischecked("limit.cusBalanceFollow", jch_cusBalanceFollow);
        gs.ischecked("limit.cusBalanceMessage", jch_cusBalanceMessage);

        gs.ischecked("limit.sellMessage", jch_sellMessage);
        gs.ischecked("limit.sellFollow", jch_sellFollow);

        gs.ischecked("limit.sellMaxPriceFollow", jch_sellMaxPriceFollow);
        gs.ischecked("limit.sellMaxPriceMessage", jch_sellMaxPriesMessage);

        gs.ischecked("limit.sellMinPriceFollow", jch_sellMinPriceFollow);
        gs.ischecked("limit.sellMinPriceMessage", jch_sellMinPriceMessage);

        gs.ischecked("limit.supBalanceFollow", jch_supBalanceFollow);
        gs.ischecked("limit.supBalanceMessage", jch_supBalanceMessage);

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jp_sellMaxPriceLimit = new ac.ui.controls.PCLPanel();
        jch_sellMaxPriesMessage = new ac.ui.controls.PCLCheckBox();
        jch_sellMaxPriceFollow = new ac.ui.controls.PCLCheckBox();
        jp_bayMaxPriceLimit = new ac.ui.controls.PCLPanel();
        jch_bayMaxPriceMessage = new ac.ui.controls.PCLCheckBox();
        jch_bayMaxPriesFollow = new ac.ui.controls.PCLCheckBox();
        jp_sellLimit = new ac.ui.controls.PCLPanel();
        jch_sellMessage = new ac.ui.controls.PCLCheckBox();
        jch_sellFollow = new ac.ui.controls.PCLCheckBox();
        jp_supBalanceLimit = new ac.ui.controls.PCLPanel();
        jch_supBalanceMessage = new ac.ui.controls.PCLCheckBox();
        jch_supBalanceFollow = new ac.ui.controls.PCLCheckBox();
        jp_cusBalanceLimit = new ac.ui.controls.PCLPanel();
        jch_cusBalanceMessage = new ac.ui.controls.PCLCheckBox();
        jch_cusBalanceFollow = new ac.ui.controls.PCLCheckBox();
        jToolBar2 = new javax.swing.JToolBar();
        update_bt = new javax.swing.JButton();
        default_bt = new javax.swing.JButton();
        jp_sellMinPriceLimit = new ac.ui.controls.PCLPanel();
        jch_sellMinPriceMessage = new ac.ui.controls.PCLCheckBox();
        jch_sellMinPriceFollow = new ac.ui.controls.PCLCheckBox();
        jp_bayLimit = new ac.ui.controls.PCLPanel();
        jch_bayMessage = new ac.ui.controls.PCLCheckBox();
        jch_bayFollow = new ac.ui.controls.PCLCheckBox();
        jp_bayMinPriceLimit = new ac.ui.controls.PCLPanel();
        jch_bayMinPriceMessage = new ac.ui.controls.PCLCheckBox();
        jch_bayMinPriesFollow = new ac.ui.controls.PCLCheckBox();

        jp_sellMaxPriceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder("jp_sellMaxPriceLimit"));

        jch_sellMaxPriesMessage.setText("jlb_viewMessage");
        jch_sellMaxPriesMessage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_sellMaxPriesMessageActionPerformed(evt);
            }
        });

        jch_sellMaxPriceFollow.setText("jlb_FollowUp");

        javax.swing.GroupLayout jp_sellMaxPriceLimitLayout = new javax.swing.GroupLayout(jp_sellMaxPriceLimit);
        jp_sellMaxPriceLimit.setLayout(jp_sellMaxPriceLimitLayout);
        jp_sellMaxPriceLimitLayout.setHorizontalGroup(
            jp_sellMaxPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_sellMaxPriceLimitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jp_sellMaxPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jch_sellMaxPriesMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jch_sellMaxPriceFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jp_sellMaxPriceLimitLayout.setVerticalGroup(
            jp_sellMaxPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_sellMaxPriceLimitLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addComponent(jch_sellMaxPriesMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jch_sellMaxPriceFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jp_bayMaxPriceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder("jp_bayMaxPriceLimit"));

        jch_bayMaxPriceMessage.setText("jlb_viewMessage");
        jch_bayMaxPriceMessage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_bayMaxPriceMessageActionPerformed(evt);
            }
        });

        jch_bayMaxPriesFollow.setText("jlb_FollowUp");

        javax.swing.GroupLayout jp_bayMaxPriceLimitLayout = new javax.swing.GroupLayout(jp_bayMaxPriceLimit);
        jp_bayMaxPriceLimit.setLayout(jp_bayMaxPriceLimitLayout);
        jp_bayMaxPriceLimitLayout.setHorizontalGroup(
            jp_bayMaxPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_bayMaxPriceLimitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jp_bayMaxPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jch_bayMaxPriceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jch_bayMaxPriesFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jp_bayMaxPriceLimitLayout.setVerticalGroup(
            jp_bayMaxPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_bayMaxPriceLimitLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addComponent(jch_bayMaxPriceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jch_bayMaxPriesFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jp_sellLimit.setBorder(javax.swing.BorderFactory.createTitledBorder("jp_sellLimit"));

        jch_sellMessage.setText("jlb_viewMessage");
        jch_sellMessage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_sellMessageActionPerformed(evt);
            }
        });

        jch_sellFollow.setText("jlb_FollowUp");
        jch_sellFollow.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_sellFollowActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jp_sellLimitLayout = new javax.swing.GroupLayout(jp_sellLimit);
        jp_sellLimit.setLayout(jp_sellLimitLayout);
        jp_sellLimitLayout.setHorizontalGroup(
            jp_sellLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_sellLimitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jp_sellLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jch_sellMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jch_sellFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jp_sellLimitLayout.setVerticalGroup(
            jp_sellLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_sellLimitLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addComponent(jch_sellMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jch_sellFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jp_supBalanceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder("jp_supBalanceLimit"));

        jch_supBalanceMessage.setText("jlb_viewMessage");
        jch_supBalanceMessage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_supBalanceMessageActionPerformed(evt);
            }
        });

        jch_supBalanceFollow.setText("jlb_FollowUp");
        jch_supBalanceFollow.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_supBalanceFollowActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jp_supBalanceLimitLayout = new javax.swing.GroupLayout(jp_supBalanceLimit);
        jp_supBalanceLimit.setLayout(jp_supBalanceLimitLayout);
        jp_supBalanceLimitLayout.setHorizontalGroup(
            jp_supBalanceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_supBalanceLimitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jp_supBalanceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jch_supBalanceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jch_supBalanceFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(62, Short.MAX_VALUE))
        );
        jp_supBalanceLimitLayout.setVerticalGroup(
            jp_supBalanceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_supBalanceLimitLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addComponent(jch_supBalanceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jch_supBalanceFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jp_cusBalanceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder("jp_cusBalanceLimit"));

        jch_cusBalanceMessage.setText("jlb_viewMessage");
        jch_cusBalanceMessage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_cusBalanceMessageActionPerformed(evt);
            }
        });

        jch_cusBalanceFollow.setText("jlb_FollowUp");
        jch_cusBalanceFollow.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_cusBalanceFollowActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jp_cusBalanceLimitLayout = new javax.swing.GroupLayout(jp_cusBalanceLimit);
        jp_cusBalanceLimit.setLayout(jp_cusBalanceLimitLayout);
        jp_cusBalanceLimitLayout.setHorizontalGroup(
            jp_cusBalanceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_cusBalanceLimitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jp_cusBalanceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jch_cusBalanceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jch_cusBalanceFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(62, Short.MAX_VALUE))
        );
        jp_cusBalanceLimitLayout.setVerticalGroup(
            jp_cusBalanceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_cusBalanceLimitLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addComponent(jch_cusBalanceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jch_cusBalanceFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jToolBar2.setRollover(true);

        update_bt.setText("bt_update");
        update_bt.setFocusable(false);
        update_bt.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        update_bt.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        update_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                update_btActionPerformed(evt);
            }
        });
        jToolBar2.add(update_bt);

        default_bt.setText("bt_default");
        default_bt.setFocusable(false);
        default_bt.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        default_bt.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        default_bt.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                default_btActionPerformed(evt);
            }
        });
        jToolBar2.add(default_bt);

        jp_sellMinPriceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder("jp_sellMinPriceLimit"));

        jch_sellMinPriceMessage.setText("jlb_viewMessage");
        jch_sellMinPriceMessage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_sellMinPriceMessageActionPerformed(evt);
            }
        });

        jch_sellMinPriceFollow.setText("jlb_FollowUp");

        javax.swing.GroupLayout jp_sellMinPriceLimitLayout = new javax.swing.GroupLayout(jp_sellMinPriceLimit);
        jp_sellMinPriceLimit.setLayout(jp_sellMinPriceLimitLayout);
        jp_sellMinPriceLimitLayout.setHorizontalGroup(
            jp_sellMinPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_sellMinPriceLimitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jp_sellMinPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jch_sellMinPriceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jch_sellMinPriceFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jp_sellMinPriceLimitLayout.setVerticalGroup(
            jp_sellMinPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_sellMinPriceLimitLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addComponent(jch_sellMinPriceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jch_sellMinPriceFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jp_bayLimit.setBorder(javax.swing.BorderFactory.createTitledBorder("jp_bayLimit"));

        jch_bayMessage.setText("jlb_viewMessage");
        jch_bayMessage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_bayMessageActionPerformed(evt);
            }
        });

        jch_bayFollow.setText("jlb_FollowUp");
        jch_bayFollow.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_bayFollowActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jp_bayLimitLayout = new javax.swing.GroupLayout(jp_bayLimit);
        jp_bayLimit.setLayout(jp_bayLimitLayout);
        jp_bayLimitLayout.setHorizontalGroup(
            jp_bayLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_bayLimitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jp_bayLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jch_bayMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jch_bayFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jp_bayLimitLayout.setVerticalGroup(
            jp_bayLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_bayLimitLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addComponent(jch_bayMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jch_bayFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jp_bayMinPriceLimit.setBorder(javax.swing.BorderFactory.createTitledBorder("jp_bayMinPriceLimit"));

        jch_bayMinPriceMessage.setText("jlb_viewMessage");
        jch_bayMinPriceMessage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_bayMinPriceMessageActionPerformed(evt);
            }
        });

        jch_bayMinPriesFollow.setText("jlb_FollowUp");
        jch_bayMinPriesFollow.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jch_bayMinPriesFollowActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jp_bayMinPriceLimitLayout = new javax.swing.GroupLayout(jp_bayMinPriceLimit);
        jp_bayMinPriceLimit.setLayout(jp_bayMinPriceLimitLayout);
        jp_bayMinPriceLimitLayout.setHorizontalGroup(
            jp_bayMinPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_bayMinPriceLimitLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jp_bayMinPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jch_bayMinPriceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jch_bayMinPriesFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jp_bayMinPriceLimitLayout.setVerticalGroup(
            jp_bayMinPriceLimitLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jp_bayMinPriceLimitLayout.createSequentialGroup()
                .addGap(15, 15, 15)
                .addComponent(jch_bayMinPriceMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jch_bayMinPriesFollow, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jToolBar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jp_sellMinPriceLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_bayMinPriceLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_bayLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_supBalanceLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jp_bayMaxPriceLimit, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_sellMaxPriceLimit, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_sellLimit, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_cusBalanceLimit, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jToolBar2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jp_bayMaxPriceLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_bayMinPriceLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jp_sellMaxPriceLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_sellMinPriceLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jp_supBalanceLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_cusBalanceLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jp_bayLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jp_sellLimit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jch_sellMaxPriesMessageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_sellMaxPriesMessageActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_sellMaxPriesMessageActionPerformed

    private void jch_bayMaxPriceMessageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_bayMaxPriceMessageActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_bayMaxPriceMessageActionPerformed

    private void jch_sellMessageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_sellMessageActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_sellMessageActionPerformed

    private void jch_sellFollowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_sellFollowActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_sellFollowActionPerformed

    private void jch_supBalanceMessageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_supBalanceMessageActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_supBalanceMessageActionPerformed

    private void jch_supBalanceFollowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_supBalanceFollowActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_supBalanceFollowActionPerformed

    private void jch_cusBalanceMessageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_cusBalanceMessageActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_cusBalanceMessageActionPerformed

    private void jch_cusBalanceFollowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_cusBalanceFollowActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_cusBalanceFollowActionPerformed

    private void update_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_update_btActionPerformed
        String[] ps
                = {
                    "limit.bayFollow", "limit.bayMessage",
                    "limit.bayMaxPriceMessage", "limit.bayMaxPriceFollow",
                    "limit.bayMinPriceMessage", "limit.bayMinPriceFollow",
                    "limit.cusBalanceFollow", "limit.cusBalanceMessage",
                    "limit.sellMessage", "limit.sellFollow",
                    "limit.sellMaxPriceMessage", "limit.sellMaxPriceFollow",
                    "limit.sellMinPriceMessage", "limit.sellMinPriceFollow",
                    "limit.supBalanceFollow", "limit.supBalanceMessage"
                };

        JCheckBox[] cs
                = {
                    jch_bayFollow, jch_bayMessage, jch_bayMaxPriceMessage, jch_bayMaxPriesFollow,
                    jch_bayMinPriceMessage, jch_bayMinPriesFollow, jch_cusBalanceFollow, jch_cusBalanceMessage,
                    jch_sellMessage, jch_sellFollow,
                    jch_sellMaxPriesMessage, jch_sellMaxPriceFollow,
                    jch_sellMinPriceMessage, jch_sellMinPriceFollow, jch_supBalanceFollow, jch_supBalanceMessage
                };
        ;
        u.sendMessage(this, po.getWord("label.saveUpdate"), gs.checkStatus(ps, cs));
    }//GEN-LAST:event_update_btActionPerformed

    private void default_btActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_default_btActionPerformed

        u.sendMessage(this, po.getWord("label.saveUpdate"), gs.defSetting());
        meload();
    }//GEN-LAST:event_default_btActionPerformed

    private void jch_sellMinPriceMessageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_sellMinPriceMessageActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_sellMinPriceMessageActionPerformed

    private void jch_bayMessageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_bayMessageActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_bayMessageActionPerformed

    private void jch_bayFollowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_bayFollowActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_bayFollowActionPerformed

    private void jch_bayMinPriceMessageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_bayMinPriceMessageActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_bayMinPriceMessageActionPerformed

    private void jch_bayMinPriesFollowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jch_bayMinPriesFollowActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jch_bayMinPriesFollowActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton default_bt;
    private javax.swing.JToolBar jToolBar2;
    private ac.ui.controls.PCLCheckBox jch_bayFollow;
    private ac.ui.controls.PCLCheckBox jch_bayMaxPriceMessage;
    private ac.ui.controls.PCLCheckBox jch_bayMaxPriesFollow;
    private ac.ui.controls.PCLCheckBox jch_bayMessage;
    private ac.ui.controls.PCLCheckBox jch_bayMinPriceMessage;
    private ac.ui.controls.PCLCheckBox jch_bayMinPriesFollow;
    private ac.ui.controls.PCLCheckBox jch_cusBalanceFollow;
    private ac.ui.controls.PCLCheckBox jch_cusBalanceMessage;
    private ac.ui.controls.PCLCheckBox jch_sellFollow;
    private ac.ui.controls.PCLCheckBox jch_sellMaxPriceFollow;
    private ac.ui.controls.PCLCheckBox jch_sellMaxPriesMessage;
    private ac.ui.controls.PCLCheckBox jch_sellMessage;
    private ac.ui.controls.PCLCheckBox jch_sellMinPriceFollow;
    private ac.ui.controls.PCLCheckBox jch_sellMinPriceMessage;
    private ac.ui.controls.PCLCheckBox jch_supBalanceFollow;
    private ac.ui.controls.PCLCheckBox jch_supBalanceMessage;
    private ac.ui.controls.PCLPanel jp_bayLimit;
    private ac.ui.controls.PCLPanel jp_bayMaxPriceLimit;
    private ac.ui.controls.PCLPanel jp_bayMinPriceLimit;
    private ac.ui.controls.PCLPanel jp_cusBalanceLimit;
    private ac.ui.controls.PCLPanel jp_sellLimit;
    private ac.ui.controls.PCLPanel jp_sellMaxPriceLimit;
    private ac.ui.controls.PCLPanel jp_sellMinPriceLimit;
    private ac.ui.controls.PCLPanel jp_supBalanceLimit;
    private javax.swing.JButton update_bt;
    // End of variables declaration//GEN-END:variables
}
